package com.gzucm.Scholarship.util;

public class StringUtils {

    public static boolean isBlank(String val) {
        int strLen;
        if (isEmpty(val)) {
            return true;
        }
        for (int i = 0; i < val.length(); i++) {
            if (Character.isWhitespace(val.charAt(i)) == false) {
                return false;
            }
        }
        return true;
    }

    public static boolean isNull(String val) {
        return val == null;
    }

    public static boolean isEmpty(String val) {
        return (isNull(val) || "".equals(val));
    }

}
